package com.campusbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 队伍通知表
 * </p>
 *
 * @author yezi
 * @since 2025-07-26
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@Schema(name = "Notifications", description = "队伍通知表")
public class Notifications implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "队伍ID")
    private Long teamId;

    @Schema(description = "发布者类型：1-教师，2-学生")
    private Byte publisherType;

    @Schema(description = "发布者ID")
    private Long publisherId;

    @Schema(description = "发布者姓名")
    private String publisherName;

    @Schema(description = "通知标题")
    private String title;

    @Schema(description = "通知内容")
    private String content;

    @Schema(description = "图片URL列表，JSON字符串")
    private String images;

    @Schema(description = "是否紧急：0-普通，1-紧急")
    private Byte isUrgent;

    @Schema(description = "是否需要确认：0-不需要，1-需要")
    private Byte requireConfirmation;

    @Schema(description = "队伍总成员数（发布时统计）")
    private Integer totalMembers;

    @Schema(description = "已确认人数")
    private Integer confirmedCount;

    @Schema(description = "状态：1-正常，0-已删除")
    private Byte status;

    @Schema(description = "发布时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
